home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 June / Software of the Month Club 1996 June.iso / mac / Education / Extended Calculator II / About Document Reader next >
Text File  |  1996-03-04  |  20KB  |  360 lines

  1.  
  2.                 DOCUMENT READER
  3.  
  4. Document Reader is a program that allows you to quickly browse through the chapters and subchapters of a text.
  5.  
  6. To the left of this text you will see two scrollable lists. The upper list shows the path of chapters and subchapters you have selected. Since you have not selected any chapter yet, this list should just display the file name.
  7.  
  8. The lower list displays the subchapters of the current chapter. It should look something like this:
  9.  
  10.   1 Try Click This
  11.   2 About Document Reader
  12.   3 Browsing with the Document Reader
  13.   4 Using the Menus
  14.   5 Writing Your Own Document Reader Documents
  15.   6 Final Words
  16.  
  17. To see the contents of a chapter, just click its name in either of the two lists.
  18.  
  19. Now, click on the chapter labelled "Try Click This" in the lower list.
  20.  
  21.  
  22. 1 Try Click This
  23.  
  24. Very good, you just made your first successful move with the Document Reader. Now the chapter heading "1 Try Click This" has been moved to the upper window and the lower window has been set to display the subchapters of this chapter.
  25.  
  26. This only happens if the chapter you click have any subchapters. If you click a chapter that doesn't have any subchapters its text will be displayed in the text pane, but the contents of the two lists will not change.
  27.  
  28. To see an example of this, click the chapter labelled "1.1 Has no subchapters"
  29.  
  30. 1.1 Has no subchapters
  31.  
  32. Good! As you see, only the text in this pane changed, the lists remained unchanged (apart from the selection being moved).
  33.  
  34. A chapter may have any number of subchapters, the subchapters may have subsubchapters, and the subsubchapters may have subsubsubchapters, and so on. To see this. Click the chapter labels "1.2 Subsubchapters"
  35.  
  36. 1.2 Subsubchapters
  37.  
  38. Excellent. As you see, this subchapter has two subchapters. Begin with looking at its first subchapter by clicking the label "1.2.1 First subchapter".
  39.  
  40. 1.2.1 First subchapter
  41.  
  42. Good, now click on the label "1.2.2 Second subchapter".
  43.  
  44. 1.2.2 Second subchapter
  45.  
  46. Very good.
  47.  
  48. Since you now have exhausted the list of subchapters of 1.2 you would like to move back to a previous level. You do this by clicking in the upper window.
  49.  
  50. Clicking "1.2 Subsubchapters" will change the text to whatever is under that heading, but the lists will not change as you currently are under the 1.2 heading.
  51.  
  52. Clicking "1 Try Click This" will bring you back to the list of subchapters of chapter 1.
  53.  
  54. Clicking "About Document Reader" will bring you back to the top of the document, where you can select other parts of the manual.
  55.  
  56. By now you now enough of Document Reader to be able to browse about in this manual by yourself. This manual contains much important information about the program so please read it carefully.
  57.  
  58. 2 About Document Reader
  59.  
  60. 2.1 Credits
  61.  
  62. The Document Reader was written by Niklas Frykholm using THINK C.
  63.  
  64. This program is ShareWare, this means that you can copy it and give it to your friends as much as you like, but if you use it and like it you have to pay a small registration fee.
  65.  
  66. This program is part of the Niklas Frykholm ShareWare package. This package is a unique offer. By sending in $5 or a corresponding amount in the currency of your choice you will become a registered user of the entire Niklas Frykholm ShareWare package.
  67.  
  68. This package includes every ShareWare program ever written by me, together with any ShareWare program I will ever write in the future.
  69.  
  70. If you never paid for a ShareWare program before, this is the time to do it. You will never get a better offer. A list of the programs currently part of the package is found in section 2.2 of this document.
  71.  
  72. Send the money, together with your name and address to:
  73.  
  74. Niklas Frykholm
  75. Rothoffsv. 37 A
  76. S-903 42 Umeî
  77. SWEDEN
  78.  
  79. nisfrm95@student.umu.se
  80. http://www.ts.umu.se/~r2d2
  81.  
  82. If you have an e-mail account you will get updates by e-mail automatically. Otherwise add $5 to the fee (that is, send me $10) and I'll mail you a disk with the latest versions.
  83.  
  84. 2.2 The Niklas Frykholm ShareWare package
  85.  
  86. At this date, the ShareWare package contains the following programs:
  87.  
  88. MacSnails - A Macintosh version of the snails game. The first Macintosh program I ever wrote. (Needless to say?)
  89.  
  90. MacPatience - A program for playing solitary card games. The current version can play three different games and comes in black and white only. A colour version is under development.
  91.  
  92. Electric Poet - A program that can create its own literary works after having been fed with the works of the great masters. The program is especially good at abstract poetry.
  93.  
  94. Extended Calculator II - Finally crept out of the beta version. This program includes a graph drawer as well as a programmable calculator.
  95.  
  96. BattleTanks 2.0 - An artillery style game, where up to 10 players mutilate each other with 16 different weapons.
  97.  
  98. Creator Changer - A small utility which allows you to change the creator of files.
  99.  
  100. Document Reader - You're looking at it!
  101.  
  102. Simple Card - A tool for creating simple multimedia documents.
  103.  
  104. HTML Pro - A tool for editing web pages.
  105.  
  106. OrgaNicer - A personal organizer for your Macintosh.
  107.  
  108. 2.3 When Should I Use Document Reader?
  109.  
  110. Document Reader's hierarchical structure together with its powerful navigating functions, such as browsing through chapters and subchapters, even using hyperlinks, makes it well suited for documents who are read randomly such as manuals, references, or other kinds of structured documents. It is less well suited for documents who are read sequentially, such as novels, but it could be used with such documents as well.
  111.  
  112. Another advantage with Document Reader documents are that they are portable. Since Document Reader is a ShareWare program you can without worrying give it away to the people who you are sharing documents with. Furthermore, since the program is so small, only 35 K, you can even ship it together with the document and thus be perfectly sure that the receiver can read it.
  113.  
  114. If the receiver still should fail to have the program, all is not entirely lost. Since Document Reader documents are ordinary text documents they can be read by any word processing application. Of course, the receiver will then not be able to use the powerful navigating functions of Document Reader.
  115.  
  116. By opening Document Reader documents with word processing programs, you will be able to print or edit the documents. You can also create your own Document Reader documents with your favourite word processor. For more information on this, see section 5 Writing your own documents.
  117.  
  118. 3 Browsing with the Document Reader
  119.  
  120. 3.1 Browsing with the Mouse
  121.  
  122. The window contains two lists, the upper one, that describes the path to the current chapter and the lower one, that displays the subchapters of the current chapter.
  123.  
  124. Clicking at a subchapter in the lower list will
  125.    a) if the  subchapter has subchapters of its own - make the subchapter the current chapter, add it to the upper list, display its text and its subchapters.
  126.    b) otherwise - display its text
  127.  
  128. Clicking at a chapter in the upper list will
  129.     make that chapter the current chapter, remove all entries following it from the upper list, display its text and its subchapters.
  130.  
  131. 3.2 Browsing with the Keyboard
  132.  
  133. The program also allows the keyboard to be used for browsing. The keys that can be used to browse are:
  134.  
  135.     Left arrow:    Moves to previous superchapter.
  136.     Up arrow:      Moves the selection up.
  137.     Down arrow:    Moves the selection down.
  138.     Right arrow:   Works as if the selection had been clicked.
  139.     Return:        Works the same way as right arrow.
  140.     Delete:        Moves to the previously used page.
  141.     Cmd-Z:         Works the same way as delete. (see 4.3)
  142.     Tab:           Moves to the next page in the document. See below.
  143.     Numeric keys:  See below.
  144.  
  145. The tab key allows you to read the entire document its original order. Just press the key and the computer will move into and out of chapters and subchapters as required.
  146.  
  147. The use of the numeric keys is very straightforward. Pressing 3 will take you to the third chapter of the current chapter, that is, it will work as if you had clicked the third entry in the lower list. 
  148.  
  149. If you hold down the command key while pressing a numeric key, the upper list will be affected instead of the lower. So, pressing Cmd-1 will always take you to the top level of the document.
  150.  
  151. If your mind is slippery (and who's isn't) it might be a good idea jot down these navigation keys on a piece of paper, your tie, or whatever is within reach. 
  152.  
  153. 3.3 Using Hyperlinks
  154.  
  155. This program supports the use of hyperlinks, which makes it possible to create complex documents which link together related parts of the document.
  156.  
  157. Whenever you see the a section number in a piece of text, just hold down the command key and click at the section number to jump to that section.
  158.  
  159. When you have read the related information you can return to the page you came from by pressing the delete key or Cmd-Z, or by choosing Undo from the Edit menu.
  160.  
  161. Try command-clicking on the numbers in the following table of contents:
  162.  
  163.  1. Try Clicking This
  164.     1.1 Has No Subchapters
  165.     1.2 Subsubchapters
  166.         1.2.1 First subchapter
  167.         1.2.2 Second subchapter
  168.  
  169.  2. About Document Reader
  170.     2.1 Credits
  171.     2.2 The Niklas Frykholm ShareWare Package
  172.     2.3 When Should I Use Document Reader?
  173.  
  174.  3. Browsing with the Document Reader
  175.     3.1 Browsing with the Mouse
  176.     3.2 Browsing with the Keyboard
  177.     3.3 Using Hyperlinks
  178.  
  179.  4. Using the Menus
  180.     4.1 ≡ (Apple) Menu
  181.     4.2 File Menu
  182.     4.3 Edit Menu
  183.     4.4 Size Menu
  184.     4.5 Font Menu
  185.  
  186.  5. Writing Your Own Document Reader Documents
  187.     5.1 Formatting Documents for the Document Reader
  188.     5.2 Limitations on Document Reader Documents
  189.     5.3 Making it a Document Reader Document
  190.     5.4 Creating Hyper-Links in Your Document
  191.  
  192.  6. Final Words
  193.  
  194. 4 Using the Menus
  195.  
  196. 4.1 ≡ (Apple) Menu
  197.  
  198. Selecting About Document Reader╔ in the file menu will show some information about the program. This document, however, contains much more information. Therefore, this document should always be distributed together with the Document Reader.
  199.  
  200. 4.2 File Menu
  201.  
  202. Open╔
  203. ------
  204. This option opens any text document for browsing and reading with the Document Reader. When you open large documents, it will take a couple of seconds until the computer has located all the chapters and subchapters.
  205.  
  206. Open & Possess
  207. --------------
  208. This option works exactly the same way as Open with one tiny difference. Before opening the document, Document Reader changes it into a Document Reader document (that was four "document" in one sentence, probably unbeatable). The document will still be a text document, however, that can be opened by any word processing program. The only thing this option does is to change the document so that the Document Reader document icon will appear and so that Document Reader will be opened when you double-click the document (okay, so it wasn't). 
  209.    You typically select this option after having created a text document in for example Microsoft Word or BBEdit, to change the document so that it is automatically opened with the Document Reader. This process is also described in section 5.3 Making it a Document Reader Document. (Try command-clicking the figures "5.3".)
  210.  
  211. Quit
  212. -----
  213. Terminates the program.
  214.  
  215. 4.3 Edit Menu
  216.  
  217. Undo
  218. ----
  219. Undo moves you to the previously viewed subchapter. This is especially useful when using hyperlinks to take a quick look at a related subchapter. The Document Reader keeps track of the ten latest viewed subchapters, so you can't use Undo to step back more than ten times. You can activate the Undo command by pressing Cmd-Z or by pressing the delete key on your keyboard. (See 3.2 Browsing with the Keyboard, for information on other keyboard commands.) 
  220.  
  221. Copy
  222. ----
  223. You can select any text from the Document Reader's text pane and copy it with this command. The text can then be pasted into other programs.
  224.    NOTE: You cannot Undo the copy command. With the Document Reader, Undo only affects your movements.
  225.  
  226. Cut, Clear, Paste
  227. -----------------
  228. Since you can't change the text of a Document Reader document from within the Document Reader, these commands are always disabled.
  229.  
  230. 4.4 Size Menu
  231.  
  232. This menu allows you to change the size of the displayed text. 
  233.  
  234. 4.5 Font Menu
  235.  
  236. This menu allows you to select the font of the displayed text. Many documents that are using tables have been designed to be used with monospaced fonts, and will look bad when displayed in other fonts. For example look how this table changes when you select different fonts.
  237.  
  238.     Up arrow:      Moves the selection up.
  239.     Down arrow:    Moves the selection down.
  240.     Right arrow:   Works as if the selection had been clicked.
  241.     Return:        Works the same way as right arrow.
  242.     Tab:           Moves to the next page in the document.
  243.  
  244. Some common monospaced fonts are Courier and Monaco.
  245.  
  246. By default, the text is set to be displayed in Monaco, 9 pt.
  247.  
  248. 5 Writing Your Own Document Reader Documents
  249.  
  250. 5.1 Formatting Documents for The Document Reader
  251.  
  252. The Document Reader documents are nothing else than plain text documents. This is very important, since:
  253.  
  254. Ñ All word processing programs can read text documents. Thus, every Document Reader document can be opened, read, printed or changed by any word processing program.
  255.  
  256. Ñ All word processing programs can save documents in plain text format. Thus, any word processing program can be used to create Document Reader documents.
  257.  
  258. The Document Reader must, however, have some way of knowing what are chapters, subchapters and so on. It does this by looking for paragraphs beginning with numbers. So if the computer should be able to find a heading the number of the heading must begin a new paragraph. There can not be any spaces between the invisible "paragraph marker" and the number.
  259.  
  260. To be able to be read by a document each chapter must have a title numbered so that it describes the complete path to the chapter. Thus a heading for subchapter 3 of chapter 5 should look like this.
  261.  
  262.     5.3 Making it a Document Reader Document
  263.  
  264. The chapters must form a complete "tree", you cannot have a subchapter without having a chapter. Thus if you have a subchapter 5.1.2, the document must contain a subchapter 5.1.1, a heading which begins 5.1 and one that begins 5. There does not have to be any text after these headings. It could look like this:
  265.  
  266.     5. Mathematical Expressions
  267.     5.1 Expressions Containing *
  268.     5.1.1 Short Expressions
  269.       An example of a short expression containing * is╔ &c.
  270.     5.1.2 Long Expressions
  271.       An example of a long expression containing * is╔╩&c.
  272.  
  273. The different parts of a heading's number should be separated with a period (.), a dash (-) or a colon (:). You cannot expect the computer to understand something like this:
  274.  
  275.     1.1 Past results
  276.     1.11 Mining
  277.     1.12 Ironing
  278.     1.2 Future results
  279.     1.21 Mining
  280.     1.22 Ironing
  281.  
  282. Instead it should be written like this:
  283.  
  284.     1.1 Past results
  285.     1.1.1 Mining
  286.     1.1.2 Ironing
  287.     1.2 Future results
  288.     1.2.1 Mining
  289.     1.2.2 Ironing
  290.  
  291. The computer will only recognise the headings if they are in the right order. For example, the heading 5.4.2 could only be followed by one of the following:
  292.  
  293.     5.4.2.1
  294.     5.4.3
  295.     5.5
  296.     6
  297.  
  298. Specifically, it wouldn't be allowed to be followed by any of the following:
  299.  
  300.    5.4.2.0
  301.    5.4.4
  302.    5.6
  303.    6.1
  304.    7
  305.  
  306. Since the computer try to interpret paragraphs beginning with numbers as headings, you should never begin a paragraph with a number unless the paragraph is indeed intended to be a heading. The simplest way to avoid this is to put one or more spaces in front of the figure at the beginning of the new paragraph. This is what I have done in the examples above. If I hadn't done that, the computer would have thought my examples were headings.
  307.  
  308. To get an idea of what a document should look like open this document, About Document Reader, in your favourite word processor and take a look at how it is written. Then, try to write your own document.
  309.  
  310. 5.2 Limitations on Document Reader Documents
  311.  
  312. While the program is indeed very flexible, there still are some limitations. These are listed below.
  313.  
  314. Ñ You are limited to ten levels of subchapters.
  315.    The question is if this should be considered a disadvantage or an advantage. Even subchapters on the seventh level tend to look ridiculous and I can't see a reason why anyone would need more than ten levels. See the examples below:
  316.     1.3.4.1 Four levels - quite acceptable
  317.     1.3.4.1.6.2.3 Seven levels - hum╔
  318.     1.3.4.1.6.2.3.3.2.2 Ten levels - I would not recommend this
  319.  
  320. Ñ The computer will only display 40 characters from each heading
  321.     If a heading contains more than 40 characters it will be truncated and a ╔ will be appended to it. For this reason headings at the same level should be separable by looking only at the first 40 characters. The following is not recommended:
  322.     1.1 Anticipated Developments in the Field of Mining
  323.     1.2 Anticipated Developments in the Field of Ironing
  324.     In practice, you will not always be able to see all the 40 available characters, because of the width of the lists.
  325.  
  326. Ñ The text under each subchapter can not be longer than 30 000 characters.
  327.     This does not need to be a disadvantage. Indeed if a subchapter contains more than 30 000 characters I strongly suggest dividing it into subchapters for easier reading. That's the point of this program, isn't it?
  328.  
  329. Ñ Memory limitations
  330.     Each heading the computer stores requires some memory. While the 250 K recommended for this program should be enough for almost any conceivable text, there is of course the possibility of someone creating a multi-megabyte document consisting entirely of headings.
  331.     A such mentally deranged person would, if he wanted to read his document have to increase the application size from 250 K to whatever he thinks is necessary. Failing to do so would probably result in a crash of the program.
  332.  
  333. 5.3 Making it a Document Reader Document
  334.  
  335. So, you have used TeachText or your favourite word processing program (this is an exclusive or) to create a text document that can be read by the Document Reader and looks great when you open it from within the application.
  336.  
  337. However when you double-click the document the computer doesn't open Document Reader, but instead Microsoft Word or some other inferior program.
  338.  
  339. To fix this problem, all you have to do is open the document from within Document Reader, using the Open & Possess command instead of the Open command. (The file menu commands are described in section 4.2). When you do this, the program will change the icon of the document and the application associated with it.
  340.  
  341. The document will however still be a simple text document. If you want to open it with the word processor, simply do what you previously had to do to open it with the Document Reader. First, start up the application. Then, open the document from within the application.
  342.  
  343. 5.4 Creating Hyper-Links in Your Document
  344.  
  345. To use a piece of text as a hyperlink, it should be marked with the following command-string {*CPFG#HYPER╔
  346.  
  347. No, I'm just joking (ha ha ha), what do you think this is? A DOS-program? The fact is that any number in the text will automatically work as a hyperlink. The disadvantage of this is that the user can command-click the five in the calculation 2 + 3 = 5, and be moved by to chapter five, by the unsuspecting computer. The advantage, that clearly outweighs the disadvantage, is however, that you anywhere in your document, can add a hyperlink by just writing (see 6 Final Words) or whatever you think the user should see. Amazing, isn't it!
  348.  
  349. 6 Final Words
  350.  
  351. Enjoy this program as much as you like, but do pay your ShareWare fee. After all, what will $5 buy you? A lollipop?
  352.  
  353. Buddha said: Invest your money in ShareWare programs, to come at harmony with your inner self.
  354.  
  355. (Well maybe these were not his exact words, but the spirit of the whole is preserved.)
  356.  
  357. Good luck!
  358.  
  359. // Niklas Frykholm
  360.